Add more info to README about compiling
authorAlex Crichton <alex@alexcrichton.com>
Sat, 23 Jan 2016 00:09:17 +0000 (16:09 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 23 Jan 2016 00:09:17 +0000 (16:09 -0800)
Running `cargo build` should work just fine to build cargo as well as not
running the python script to download rustc itself. Now that Cargo runs on
stable (and a pretty old stable) most Rust installations should "Just Work" to
build Cargo.

README.md

index f86c6a93a900a7a1532aa2cf0f0bdbbc7cf1bdd1..716c26b14c42e55fd47d7a180c3e945fa635a1a4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -27,18 +27,36 @@ inside an MSYS shell, likely from a MinGW-64 installation.
 
 Cargo requires the following tools and packages to build:
 
-* `rustc`
 * `python`
 * `curl` (on Unix)
 * `cmake`
 * OpenSSL headers (only for Unix, this is the `libssl-dev` package on ubuntu)
 
-Cargo can then be compiled like many other standard unix-like projects:
+First, you'll want to check out this repository
 
-```sh
-git clone https://github.com/rust-lang/cargo
+```
+git clone --recursive https://github.com/rust-lang/cargo
 cd cargo
-git submodule update --init
+```
+
+If you already have `rustc` and `cargo` installed elsewhere, you can simply run
+
+```
+cargo build --release
+```
+
+Otherwise, if you have `rustc` installed and not Cargo, you can simply run:
+
+```sh
+./configure
+make
+make install
+```
+
+If, however, you have neither `rustc` nor `cargo` previously installed you can
+run:
+
+```sh
 python -B src/etc/install-deps.py
 ./configure --local-rust-root="$PWD"/rustc
 make